InitMenus
This allocates heap storage for the menu list and draws an empty menu bar.
Call this once, early in the program, before making any other Menu Manager
calls.
or using any Menu Manager functions.
After this call, you can prepare your menus using any of the following
techniques:
• Use GetNewMBar to read an entire menu list (all menus with their items) into memory from a resource. Use SetMenuBar to install it. • Use GetMenu to read menus, one at a time, into memory from a resource. • Use NewMenu to create empty menus. Fill them with items using • Use NewMenu to create an empty menu. Fill it with items using AddResMenu (to get a list of all resources of a selected type; e.g. fonts), When a mouse-down event occurs, use FindWindow; if the return value is inMenuBar, call MenuSelect to pull down the menu and let the user choose an item. The return value indicates which item was chosen. When a
key-down event indicates a command key, use MenuKey to see which menu item was desired.